create an new array of objects from two array of objects in vanilla JS